<html>
<head>
<script src="../../../jsonrpc_client.js" type="text/javascript"></script>
<script src="../../../introducer-compat.js" type="text/javascript"></script>
<script type="text/javascript">
  function messageHandler(theEvent) {
    document.getElementById("message").textContent = JSON.stringify(theEvent.data);
  }

  function run() {
    initIntroducer(document.getElementById("introducer-frame"));
    introducer.receiveCustomerMessages(['http://webintroducer.googlecode.com'], ['application/message'], function(messagePort) {
      if (messagePort.addEventListener) {
  		  messagePort.addEventListener("message", messageHandler, false);
  		} else if (messagePort.attachEvent) {
  		  messagePort.attachEvent("onmessage", messageHandler);
  		}
    });
  }
</script>
  </head>
  <body onload="run()">
    <iframe width="0" height="0" src="../../../introducer-handler.html" id="introducer-frame"></iframe>
    MESSAGE:
    <div id="message">
    </div>
  </body>
</html>